Skip to content

Align devcontainer configuration with readme#7

Merged
fedgiac merged 1 commit intomainfrom
devcontainer-update
Jun 3, 2025
Merged

Align devcontainer configuration with readme#7
fedgiac merged 1 commit intomainfrom
devcontainer-update

Conversation

@fedgiac
Copy link
Contributor

@fedgiac fedgiac commented Jun 2, 2025

The readme specifies the Foundry version to use for the deployment.

This PR hardcodes the Foundry version in the devcontainer to that in the readme as specified in the feature usage.

I also update the base image from 0 to 1 to make the container work with more up-to-date Foundry versions. Otherwise, forge failes to run because there are no compatible GLIBC versions available.

How to test

  • Verify that the commit hash matches the readme
  • Verify that the devcontainer can be installed
  • Run forge --version in the new devcontainer. Expected output:
    forge 0.2.0 (cb9dfae 2024-07-17T00:19:36.865417953Z)
    

@fedgiac fedgiac requested review from anxolin and squadgazzz June 2, 2025 17:33
@fedgiac fedgiac merged commit 6363896 into main Jun 3, 2025
2 checks passed
@fedgiac fedgiac deleted the devcontainer-update branch June 3, 2025 06:57
Copy link

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is being applied?

I used devcontainers and checked this, and I was expecting to see the same commit as in the readme, but saw a different one:

image

Maybe I run the wrong command?

"image": "mcr.microsoft.com/devcontainers/base:1",
"features": {
"ghcr.io/nlordell/features/foundry": {},
"ghcr.io/nlordell/features/foundry": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's this using nicks's image? sholdn't this be pointing to one official repository or repo controlled by us?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no official repo afaik. I agree we should change this at some point. We could either try to contact the Foundry team and ask if they are interested in supporting it or have an unofficial version under cowprotocol.

@fedgiac
Copy link
Contributor Author

fedgiac commented Jun 10, 2025

I tried to build again and it appears to be working.

I used devpod up . --reset --recreate --ide none to create this devcontainer.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants